package spring.core.aop;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

/**
 * @author 1203056
 * @version Id: TeacherMethodInterceptor.java, v 0.1 2021-09-06 23:57 1203056 Exp $
 */
public class TeacherMethodInterceptor implements MethodInterceptor {
    public Object invoke(MethodInvocation invocation) throws Throwable {
        System.out.println("invoke method: "+invocation.getMethod());
        return invocation.proceed();
    }
}
